package com.scc.utils;

import javax.annotation.Resource;

import org.hibernate.SessionFactory;
import org.springframework.stereotype.Repository;

@Repository
public class HibernateUtil
{
   private static SessionFactory sessionFactory;
   
   public static SessionFactory getSessionFactory()
   {
      return sessionFactory;
   }
   
   @SuppressWarnings("static-access")
   @Resource(name="sessionFactory")
   public void setSessionFactory(SessionFactory sessionFactory)
   {
      this.sessionFactory = sessionFactory;
   }
   
}